import { GSprite } from "../../../../com/mui/controls/GSprite";
import { Language } from "../../../../extend/language/Language";
import { ObjCreate } from "../common/ObjCreate";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { StarBitmapItem } from "./StarBitmapItem";
import { ImagesConst } from "../../resource/ImagesConst";
import { GTextFiled } from "../../../../com/mui/controls/GTextFiled";
//class LoginDescPanel
    
    export  class LoginDescPanel extends GSprite
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ createDisposedChildrenImpl(): void
        {
            super.createDisposedChildrenImpl();
            var loc1=Language.getStringByParam(36534, 1, 1);
            this._descTxt1 = ObjCreate.createGTextField("", 68, 0, 200, 70, this);
            this._descTxt1.htmlText = loc1;
            var loc2=Language.getStringByParam(36534, 2, 2);
            this._descTxt2 = ObjCreate.createGTextField("", 68, 20, 200, 70, this);
            this._descTxt2.htmlText = loc2;
            var loc3=Language.getStringByParam(36534, 3, 3);
            this._descTxt3 = ObjCreate.createGTextField("", 68, 40, 200, 70, this);
            this._descTxt3.htmlText = loc3;
            var loc4=Language.getString(36535);
            this._tipsTxt = ObjCreate.createGTextField("", 15, 70, 220, 40, this, GlobalStyle.setTextFormatLeading(GlobalStyle.textFormatGreen, 3));
            this._tipsTxt.multiline = true;
            this._tipsTxt.wordWrap = true;
            this._tipsTxt.htmlText = loc4;
            this._starBlue = new StarBitmapItem(1, ImagesConst.StarBlue);
            addChild(this._starBlue);
            this._starPurple = new StarBitmapItem(2, ImagesConst.StarPurple);
            this._starPurple.y = 20;
            addChild(this._starPurple);
            this._starYellow = new StarBitmapItem(3, ImagesConst.StarYellow);
            this._starYellow.x = 2;
            this._starYellow.y = 40;
            addChild(this._starYellow);
            return;
        }

        protected /* override */ disposeImpl(arg1: Boolean=true): void
        {
            super.disposeImpl(arg1);
            this._descTxt1.dispose();
            this._descTxt2.dispose();
            this._descTxt3.dispose();
            this._tipsTxt.dispose();
            this._starBlue.dispose();
            this._starPurple.dispose();
            this._starYellow.dispose();
            return;
        }

        /* internal */ /* var */_descTxt1: GTextFiled;

        /* internal */ /* var */_descTxt2: GTextFiled;

        /* internal */ /* var */_descTxt3: GTextFiled;

        /* internal */ /* var */_tipsTxt: GTextFiled;

        /* internal */ /* var */_starBlue: StarBitmapItem;

        /* internal */ /* var */_starPurple: StarBitmapItem;

        /* internal */ /* var */_starYellow: StarBitmapItem;
    }
